#!/usr/bin/env python 
# -*- coding:utf-8 -*-
from pymongo import MongoClient


class Mongo_db(object):

    def __init__(self, mongo_host="localhost", port=27017):
        self.conn = MongoClient(host=mongo_host, port=port)

    def get_db(self, collection_name):
        return self.conn.get_database(name=collection_name)